Repository navigation
feat(sandbox): support streaming single-file transfers - #4557
Open
liulingluan wants to merge 5 commits into
Open
liulingluan wants to merge 5 commits into
liulingluan wants to merge 5 commits into
Conversation
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AgentScope-Java Version
2.1.0-SNAPSHOT
Description
Related to #3781.
Single-file transfers currently require complete
byte[]payloads, so memory grows with file size and concurrent downloads. Add stream-based upload/download APIs while preserving the existing byte-array and bulk APIs.SandboxFileTransferandAbstractFilesystem, and forward streams through filesystem routing and per-call runtime bindings.Validation
Rebased onto upstream
mainat2644b0f97before rerunning the full build and documentation checks.mvn -B -T1C -Ddocker.it=true clean verify— 114 modules successful; 14,141 tests reported, 218 conditionally skipped, zero failures/errors. The 13 changed test classes contain 176 tests, all executed successfully. Spotless checks passed.npm test(20 passed),npm run validate, andnpm run broken-linkspassed.-Xmx64m, matching source/download/remote SHA-256; four concurrent contexts with 20 round trips each; Harness invocation, stream ownership, interruption, timeout and recovery checks passed.Scope and limits
Workspace archive/snapshot streaming is outside this PR. Unsupported backends/paths retain the buffered compatibility fallback. Provider/gateway request limits and independent server-side buffering still apply; the official Kubernetes Python runtime buffers uploads. Official E2B-hosted sandbox creation/deletion, Windows, and a separate physical AMD64 Docker daemon were not exercised. The added automated tests use local fixtures and require no provider credentials.
Checklist
mvn spotless:applymvn test), with the conditional skips noted above